public class SwivelRobot extends Robot{
        
        private int rotations;

        public SwivelRobot(Role role) {
                super(role);
                this.rotations = 0;
}

        @Override
        public void riseSpec(double rotations) {
                this.rotations = this.rotations + (int) rotations;
        }

        @Override
        public double getSpec() {
                return this.rotations;
        }
}
